package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallRefundArticlesDO;
import com.starlink.model.request.MallRefundArticlesRequest;
import com.starlink.model.vo.MallRefundArticlesVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallRefundArticlesDtoMapper {

    MallRefundArticlesDtoMapper INSTANCE = Mappers.getMapper(MallRefundArticlesDtoMapper.class);

    /**
    * DO to VO
    * @param mallRefundArticlesDO
    * @return
    */
    MallRefundArticlesVO do2VO(MallRefundArticlesDO mallRefundArticlesDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallRefundArticlesDO request2DO(MallRefundArticlesRequest request);
}
